Espressif Systems /ESP32-P4 /JPEG /CONFIG

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as CONFIG

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (FSM_RST)FSM_RST 0 (JPEG_START)JPEG_START 0 (QNR_PRESITION)QNR_PRESITION 0 (FF_CHECK_EN)FF_CHECK_EN 0SAMPLE_SEL 0 (DMA_LINKLIST_MODE)DMA_LINKLIST_MODE 0 (DEBUG_DIRECT_OUT_EN)DEBUG_DIRECT_OUT_EN 0 (GRAY_SEL)GRAY_SEL 0LQNR_TBL_SEL 0CQNR_TBL_SEL 0COLOR_SPACE 0 (DHT_FIFO_EN)DHT_FIFO_EN 0 (MEM_CLK_FORCE_ON)MEM_CLK_FORCE_ON 0JFIF_VER0 (DECODE_TIMEOUT_TASK_SEL)DECODE_TIMEOUT_TASK_SEL 0 (SOFT_RST)SOFT_RST 0 (FIFO_RST)FIFO_RST 0 (PIXEL_REV)PIXEL_REV 0 (TAILER_EN)TAILER_EN 0 (PAUSE_EN)PAUSE_EN 0 (MEM_FORCE_PD)MEM_FORCE_PD 0 (MEM_FORCE_PU)MEM_FORCE_PU 0 (MODE)MODE

Description

Control and configuration registers

Fields

FSM_RST

fsm reset

JPEG_START

start to compress a new pic(in dma reg mode)

QNR_PRESITION

0:8bit qnr,1:12bit qnr(TBD)

FF_CHECK_EN

enable whether to add “00” after “ff”

SAMPLE_SEL

0:yuv444,1:yuv422, 2:yuv420

DMA_LINKLIST_MODE

1:use linklist to configure dma

DEBUG_DIRECT_OUT_EN

0:normal mode,1:debug mode for direct output from input

GRAY_SEL

0:use non-fifo way to access qnr ram,1:use fifo way to access qnr ram

LQNR_TBL_SEL

choose luminance quntization table id(TBD)

CQNR_TBL_SEL

choose chrominance quntization table id (TBD)

COLOR_SPACE

configure picture’s color space:0-rb888,1-yuv422,2-rgb565, 3-gray

DHT_FIFO_EN

0:use non-fifo way to write dht len_total/codemin/value table,1:use fifo way to write dht len_total/codemin/value table. Reading dht len_total/codemin/value table only has nonfifo way

MEM_CLK_FORCE_ON

force memory’s clock enabled

JFIF_VER

decode pause period to trigger decode_timeout int, the timeout periods =2 power (reg_decode_timeout_thres) -1

DECODE_TIMEOUT_TASK_SEL

0: software use reset to abort decode process ,1: decoder abort decode process by itself

SOFT_RST

when set to 1, soft reset JPEG module except jpeg_reg module

FIFO_RST

fifo reset

PIXEL_REV

reverse the source color pixel

TAILER_EN

set this bit to add EOI of “0xffd9” at the end of bitstream

PAUSE_EN

set this bit to pause jpeg encoding

MEM_FORCE_PD

0: no operation,1:force jpeg memory to power down

MEM_FORCE_PU

0: no operation,1:force jpeg memory to power up

MODE

0:encoder mode, 1: decoder mode

Links

() ()